package kdd.lib;

/**
 * Thrown when an assertion fails.
 */
class AssertionFailureError extends Error {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	AssertionFailureError() {
		super();
    }

    AssertionFailureError(String message) {
    	super(message);
    }
}

public final class Lib {
	public static void assertTrue(boolean pred){
		if (!pred) 
			throw new AssertionFailureError();
	}
	
	public static void assertTrue(boolean pred, String msg){
		if (!pred)
			throw new AssertionFailureError(msg);
	}
}
